package com.ruoyi.project.note.domain;

import com.alibaba.fastjson.JSONArray;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 笔记对象 note
 * 
 * @author dou
 * @date 2024-03-07
 */
public class Note extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @JsonFormat(shape = JsonFormat.Shape.STRING)//转化成string传到前端
    private Long id;

    /** 用户id */
    @JsonFormat(shape = JsonFormat.Shape.STRING)//转化成string传到前端
    @Excel(name = "用户id")
    private Long userId;

    /** 标题 */
    @Excel(name = "标题")
    private String filename;

    /** 笔记集id */
    @JsonFormat(shape = JsonFormat.Shape.STRING)//转化成string传到前端
    @Excel(name = "笔记集id")
    private Long notebookId;

    /** 笔记集 */
    @Excel(name = "笔记集")
    private String notebookName;

    /** 标签 */
    @Excel(name = "标签")
    private String tags;

    /** 富文本数据 */
    @Excel(name = "富文本数据")
    private String delta;

    /** 创建人 */
    @Excel(name = "创建人")
    private String username;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private String createDate;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private String updateDate;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 附件 */
    @Excel(name = "附件")
    private String annexList;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setFilename(String filename) 
    {
        this.filename = filename;
    }

    public String getFilename() 
    {
        return filename;
    }
    public void setNotebookId(Long notebookId)
    {
        this.notebookId = notebookId;
    }

    public Long getNotebookId()
    {
        return notebookId;
    }
    public void setNotebookName(String notebookName) 
    {
        this.notebookName = notebookName;
    }

    public String getNotebookName() 
    {
        return notebookName;
    }
    public void setTags(String tags)
    {
        this.tags = tags;
    }

    public String getTags()
    {
        return tags;
    }
    public void setDelta(String delta) 
    {
        this.delta = delta;
    }

    public String getDelta() 
    {
        return delta;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setCreateDate(String createDate)
    {
        this.createDate = createDate;
    }

    public String getCreateDate()
    {
        return createDate;
    }
    public void setUpdateDate(String updateDate)
    {
        this.updateDate = updateDate;
    }

    public String getUpdateDate()
    {
        return updateDate;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setAnnexList(String annexList)
    {
        this.annexList = annexList;
    }

    public String getAnnexList()
    {
        return annexList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("filename", getFilename())
            .append("notebookId", getNotebookId())
            .append("notebookName", getNotebookName())
            .append("tags", getTags())
            .append("delta", getDelta())
            .append("username", getUsername())
            .append("createDate", getCreateDate())
            .append("updateDate", getUpdateDate())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("annexList", getAnnexList())
            .toString();
    }
}
